package Scaner.scan;

import java.util.List;

/**
 * Created by zhengjinglan on 2018/5/26.
 */

public abstract class Scaner {
    protected IScanerListener scanerListener;

    public void setScanerListener(IScanerListener scanerListener) {
        this.scanerListener = scanerListener;

    }
    /**
     * 扫描器初始化
     */
    public abstract void init();

    /**
     * 扫描器释放
     */
    public abstract void destory();

    /**
     * 开启单次扫描
     */
    public abstract void playSingle();

    /**
     * 开启重复扫描
     */
    public abstract void playRepeat();

    /**
     * 停止扫描
     */
    public abstract void stop();

    /**
     * 获取扫描结果
     * @return
     */
    public abstract List<String> getData();
}
